import * as ActionType from '../actionTypes';

var hello_actions = {

  fetchStoryDetail: () => (dispatch, getState, api) => {
    dispatch(hello_actions.receiveStoryDetail('1', true, false));
  },
  receiveStoryDetail: (id, refreshing, loaded) => ({
    type: ActionType.Fetch_Story_Detail,
    id,
    refreshing,
    loaded
  }),
  receiveStoryDetailDone: (id, refreshing, loaded, story) => ({
    type: ActionType.Fetch_Story_Detail,
    id,
    refreshing,
    loaded,
    story
  })
}

export default hello_actions;